#include <iostream>
#include <thread>
#include <condition_variable>
std::mutex mtx;
std::condition_variable cv;
int ready = 0;
using namespace std;

template<typename T1,typename T2>
class zuobiao
{
private:
    T1 x;
    T2 y;
public:
    zuobiao(T1 x1, T2 y1)
    {
        x = x1;
        y = y1;
    }

    T1 getx()
    {
        return this->x;
    }
    T2 gety()
    {
        return this->y;
    }
    //静态函数，相当于完成了模板函数的工作
    static T1 getx1(T1 x)
    {
        return x;
    }
    static T2 gety2(T2 y)
    {
        return y;
    }
};
int main()
{
    zuobiao<int, char>z(1, '0');
    cout << z.getx() << " " << z.gety();
    cout << zuobiao<char,int>::getx1('0') << " " << zuobiao<char, int>::gety2(1);
    return 0;
}